<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>用户登录</title>
<!--用百度的静态资源库的cdn安装bootstrap环境-->
<!-- Bootstrap 核心 CSS 文件 -->
<link href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
<!--font-awesome 核心CSS 文件-->
<link href="//cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
<!-- 在bootstrap.min.js 之前引入 -->
<script src="http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js"></script>
<!-- Bootstrap 核心 JavaScript 文件 -->
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>

<!-- 本地调试用 -->
<script src="http://localhost:8080/ssm_crm/js/userLogin.min.js"></script>

<!-- <script src="http://111.230.166.63:8080/ssm_crm/js/userLogin.min.js"></script> -->

<style type="text/css">
body {
	background: url(img/4.jpg);
	background-size: cover;
	font-size: 16px;
}

.form {
	background: rgba(255, 255, 255, 0.2);
	width: 400px;
	margin: 100px auto;
}

.fa {
	display: inline-block;
	top: 27px;
	left: 6px;
	position: relative;
	color: #ccc;
}

input[type="text"], input[type="password"] {
	padding-left: 26px;
}

</style>
</head>
<body>

	<div class="container">
		<div class="form row">
			<form class="form-horizontal col-sm-offset-3 col-md-offset-3"
				id="login_form" method="post">
				<h3 class="form-title">用户密码登录</h3>
				<div class="col-sm-9 col-md-9">
					<div class="form-group">
						<i class="fa fa-user fa-lg"></i> <input
							class="form-control required" id="username" type="text" placeholder="用户名"
							name="user_code" autofocus="autofocus" maxlength="20" />
					</div>
					<div class="form-group">
						<i class="fa fa-lock fa-lg"></i> <input
							class="form-control required" id="password" type="password"
							placeholder="密码" name="user_password" maxlength="8" />
					</div>
					<div class="form-group">
						<button type="button" class="btn btn-success pull-right" onclick="userLogin()">登录</button>
						<!-- <input type="submit" class="btn btn-success pull-right" value="登录 "/> -->
						<!-- <button class="btn btn-primary" onclick="login()">登录</button> -->
					</div>
				</div>
			</form>
		</div>

	</div>
</body>
</html>
